import request from '@/utils/request'

export function getList() {
  return request({
    url: '/sys/roles',
    method: 'get',
  })
}
export function insertOne(data) {
  return request({
    url:'/sys/roles',
    method:'post',
    data:data,
  })
}
export function update(data){
    return request({
      url:'/sys/roles',
      method:'PUT',
      data:data
    })
}
export function delByid(id){
    return request({
      url:'/sys/roles',
      method:'delete',
      params:{
        id:id
      },
    })
  }
